package com.tran.tr.user.controller.impl;

import com.tran.tr.common.resp.ApiResp;
import com.tran.tr.user.feign.TrUserFeignService;
import com.tran.tr.user.service.TrUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TrUserFeignController implements TrUserFeignService {
    @Autowired
    private TrUserService trUserService;

    @Override
    public ApiResp get(@RequestParam("id")String id) {
        return ApiResp.success(trUserService.getById(id));
    }
}
